

card = int(input("请输入数字："))
count = 0

while True:
    if count < 3:
        user_guess = int(input("请猜一猜："))
        if card == user_guess:
            print("恭喜你答对了，你好棒~好聪明啊~")
            break
        elif card > user_guess:
            print("往大了猜！")
        else:
            print("太大了，往小的猜！")
    else:
        print("哈哈哈哈~ 猜了这么多次都猜不出来，你好笨啊~")
        break
    count = count+1

# 请输入数字：66
# 请猜一猜：66
# 恭喜你答对了，你好棒~好聪明啊~